package com.sny.upgrade.ui;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sny.upgrade.R;


/**
 * @author wangying
 */
public class UpdateConfirmDialog extends ConfirmCommonDialog {

    private ViewGroup mCustomLayout;
    private TextView mContentTextView;

    public UpdateConfirmDialog(Activity act, boolean cancelOutside) {
        super(act, cancelOutside);
    }

    @Override
    void initCustomLayout(RelativeLayout contenLayout) {
        mCustomLayout = (ViewGroup) LayoutInflater.from(mActivity).inflate(
                R.layout.dialog_update_layout, contenLayout, true);
        mContentTextView = (TextView) mCustomLayout
                .findViewById(R.id.update_content);
    }

    public void setContentText(String str) {
        mContentTextView.setText(str);
    }

}
